<%--
  Created by IntelliJ IDEA.
  User: Sn
  Date: 2022/9/20
  Time: 10:14
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<h1>学生添加</h1>
<form action="/stu/add.action" method="post">
    <div><span>姓名</span><input type="text" name="name"></div>
    <div><span>年龄</span><input type="text" name="age"></div>
    <div><span>性别</span>
        <input type="radio" name="sex" checked  value="M" ><span>男</span>
        <input type="radio" name="sex" value="W"><span>女</span>
    </div>
    <div><span>分数</span><input type="text" name="score"></div>
    <button type="submit">确认添加</button>
    <button type="button" onclick="back()">返回</button>
</form>
</body>
</html>
<script>
    function back(){
        window.location="/stu/getAll.action";
    }
</script>
